package org.scauinfo.fpos.vo;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.Table;

/**
 * Discount entity. @author MyEclipse Persistence Tools
 */
@Entity
@Table(name = "discount", catalog = "db_fpos")
public class Discount implements java.io.Serializable {

	// Fields

	private Integer id;
	private String discountId;
	private String discountName;
	private String discountRules;
	private String discountDescription;

	// Constructors

	/** default constructor */
	public Discount() {
	}

	/** minimal constructor */
	public Discount(String discountId, String discountName, String discountRules) {
		this.discountId = discountId;
		this.discountName = discountName;
		this.discountRules = discountRules;
	}

	/** full constructor */
	public Discount(String discountId, String discountName,
			String discountRules, String discountDescription) {
		this.discountId = discountId;
		this.discountName = discountName;
		this.discountRules = discountRules;
		this.discountDescription = discountDescription;
	}

	// Property accessors
	@Id
	@GeneratedValue
	@Column(name = "id", unique = true, nullable = false)
	public Integer getId() {
		return this.id;
	}

	public void setId(Integer id) {
		this.id = id;
	}

	@Column(name = "discount_id", nullable = false)
	public String getDiscountId() {
		return this.discountId;
	}

	public void setDiscountId(String discountId) {
		this.discountId = discountId;
	}

	@Column(name = "discount_name", nullable = false)
	public String getDiscountName() {
		return this.discountName;
	}

	public void setDiscountName(String discountName) {
		this.discountName = discountName;
	}

	@Column(name = "discount_rules", nullable = false)
	public String getDiscountRules() {
		return this.discountRules;
	}

	public void setDiscountRules(String discountRules) {
		this.discountRules = discountRules;
	}

	@Column(name = "discount_description")
	public String getDiscountDescription() {
		return this.discountDescription;
	}

	public void setDiscountDescription(String discountDescription) {
		this.discountDescription = discountDescription;
	}

}